/**
 * @author Maximilian Csuk
 * @author Bernhard Denner
 * @author Konrad Paumann
 */
public class MyInteger implements KeyType<MyInteger> {

	private int i;
	
	public MyInteger(int i) {
		this.i = i;
	}
	
	/**
	 * Checks if this is equal to that
	 * Returns true if yes, false otherwise
	 */
	public boolean equal(MyInteger that) {
		return this.i == that.i;
	}

	/**
	 * Checks if this is less than that
	 * Returns true if yes, false otherwise
	 */
	public boolean less(MyInteger that) {
		return this.i < that.i;
	}
	
	/**
	 * Returns a String representation of this MyInteger
	 */
	public String toString() {
		return Integer.toString(i);
	}

}
